package com.kfm.springboot.service.impl;

import com.kfm.springboot.entity.Account;
import com.kfm.springboot.mapper.AccountMapper;
import com.kfm.springboot.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HelloServiceImpl implements HelloService {

    @Autowired
    private AccountMapper mapper;

    @Override
    public String hello() {
        return "hello 3333";
    }

    @Override
    public List<Account> findAll(){
        return mapper.selectAll();
    }
}
